{include file="public_head" /}

<!-- datatables -->
<link href="__STATIC__/js/datatables/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<!-- chk_3 -->
<link href="__STATIC__/css/chk_3.css" rel="stylesheet" type="text/css"/>
<!-- preview -->
<link href="__STATIC__/css/preview.css" rel="stylesheet">
<body class="nav-md">

<div class="container body">


    <div class="main_container">

        {include file="public_sidebar,public_nav" /}

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>
                            订单评价管理
                        </h3>
                    </div>
                </div>
                <div class="clearfix"></div>

                <div class="row">

                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>{$mate_title}
                                    <!--<small>promotion</small>-->
                                </h2>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <form name="form" id="form" method="get" action="">

                                    <div class="title_left">
                                        <div class="col-md-5 col-sm-3 col-xs-12 form-group pull-left top_search">
                                            <div class="input-group" style="float: left;margin: 0 20px;">

                                                <select name="status" class="select2_single" style="width: 200px;"
                                                        tabindex="-1">
                                                    <option value="0">- 请选择审核状态 -</option>
                                                    <option value="1" {eq name=':input("status")' value='1' }selected{/eq}>是</option>
                                                    <option value="2" {eq name=':input("status")' value='2' }selected{/eq}>否</option>
                                                </select>
                                            </div>
                                            <!--<div class="input-group" style="float: left;margin: 0 20px;">-->

                                                <!--<select name="reply_status" class="select2_single" style="width: 200px;"-->
                                                        <!--tabindex="-1">-->
                                                    <!--<option value="0">- 请选择回复状态 -</option>-->
                                                    <!--<option value="1" {eq name=':input("reply_status")' value='1' }selected{/eq}>是</option>-->
                                                    <!--<option value="2" {eq name=':input("reply_status")' value='2' }selected{/eq}>否</option>-->
                                                <!--</select>-->
                                            <!--</div>-->
                                            <div class="input-group">
                                                <input type="text" class="form-control" name="title"
                                                       placeholder="输入搜索内容..." value="{:input('title')}">
                                            </div>
                                        </div>
                                        <button type="submit" class="btn btn-primary" style="margin-left: 10px;">搜 索</button>
                                    </div>

                                    <table class="table table-striped table-bordered">
                                        <thead>
                                        <tr>
                                            <th>缩 略 图</th>
                                            <th>商品名称</th>
                                            <th>买家账号</th>
                                            <th>评 分 数</th>
                                            <!--<th>审核状态</th>-->
                                            <!--<th>回复状态</th>-->
                                            <th>评论时间</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>

                                        <tbody>
                                        {empty name="data"}
                                        <tr><td colspan="8"><div style='font-size:24px;margin:30px 0;'>没有找到记录</div></td></tr>
                                        {/empty}
                                        {volist name="data" id="item"}
                                        <tr>
                                            <!--<td><input type="checkbox" name="id[]" value="{$item.id}"/></td>-->
                                            <td>
                                                <a path="__PUBLIC__/{$item.thumb_img}" class="preview">
                                                    <img id="imgShow" src="__PUBLIC__/{$item.thumb_img|default=''}"
                                                    width="50" height="50"
                                                    onerror="this.src='__STATIC__/images/default.png'"/>
                                                </a>
                                            </td>
                                            <td style="padding-top: 20px;">{$item.title}</td>
                                            <td style="padding-top: 20px;">{$item.username}</td>
                                            <td style="padding-top: 20px;">{$item.grade} 星</td>
                                            <!--<td style="padding-top: 20px;">-->
                                                <!--{eq name='item.status' value='1'}-->
                                                    <!--是-->
                                                <!--{else/}-->
                                                    <!--否-->
                                                <!--{/eq}-->
                                            <!--</td>-->
                                            <!--<td style="padding-top: 20px;">-->
                                                <!--{eq name='item.reply_status' value='1'}-->
                                                    <!--是-->
                                                <!--{else/}-->
                                                    <!--否-->
                                                <!--{/eq}-->
                                            <!--</td>-->
                                            <td style="padding-top: 20px;">{$item.create_time|date='Y-m-d H:i:s',###}</td>
                                            <td style="padding-top: 20px;">
                                                <a href="{:url('shop_goods_evaluate/examine', ['id' => $item['id']])}"
                                                   class="label label-primary">
                                                    <span class="fa fa-pencil"></span>&nbsp;&nbsp;查 看
                                                </a>
                                                &nbsp;&nbsp;&nbsp;&nbsp;
                                                <!--<a href="{:url('console/member_message/destroy', ['id' => $item['id']])}"-->
                                                   <!--class="label label-danger"-->
                                                   <!--onClick="return confirm('确定删除吗?')"-->
                                                <!--&gt;-->
                                                    <!--<span class="fa fa-times"></span>&nbsp;&nbsp;删 除-->
                                                <!--</a>-->
                                            </td>
                                        </tr>
                                        {/volist}
                                        </tbody>
                                        <!--<tbody align="left">-->
                                        <!--<tr>-->
                                            <!--<td colspan="5">-->
                                                <!--<span class="selArea"><span>选择：</span>-->
                                                    <!--<a style="color:#428BCA"-->
                                                       <!--href="javascript:DelAllNone('{:url(\'console/member_message/destroy\')}');"-->
                                                       <!--onclick="return ConfDelAll(0);">选择删除</a>-->
                                                <!--</span>-->

                                            <!--</td>-->
                                        <!--</tr>-->
                                        <!--</tbody>-->
                                    </table>
                                    <!-- 分页 -->
                                    <div style="float: right;margin-top: -30px;">{$data->render()}</div>
                                </form>
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
        <!-- /page content -->
    </div>

</div>

{include file="public_foot" /}
<!--select-->
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<!-- daterangepicker -->
<script src="__STATIC__/js/datepicker/daterangepicker.js"></script>
<!-- public -->
<script src="__STATIC__/js/public.js"></script>
<!-- layer -->
<script src="__STATIC__/js/layer.js"></script>
<!-- preview -->
<script src="__STATIC__/js/preview.js"></script>
<script type="text/javascript">
    // list
    $(document).ready(function () {
        // select2
        $(".select2_single").select2({
            placeholder: "请选择分类",
            allowClear: true
        });
        // interval_timer
        $('#interval_timer').daterangepicker(null,
            function(start, end, label) {
//                console.log(start.toISOString(), end.toISOString(), label);
            });
        // preview
        if ($('a.preview').length) {
            var img = preloadIm();
            imagePreview(img);
        }
    });
</script>